package cn.bigway.app.weavingdesigner.weaving;

import cn.bigway.app.weavingdesigner.action.newdoc.WdNewDocDialog;

public final class WdWeavingDocFactory {

	private static final WdWeavingDocFactory instance = new WdWeavingDocFactory();

	private WdWeavingDocFactory() {
		//
	}

	public static WdWeavingDocFactory getInstance() {
		return instance;
	}

	public WdWeavingDoc create(WdNewDocDialog dlg) {
		WdWeavingDocInitData data = dlg.getData();
		return new WdWeavingDoc(data);
	}
}
